package com.feidee.data.email.dao;

import com.feidee.data.report.exception.DataDaoException;

import java.util.List;
import java.util.Map;

public interface QueryDao {

  /**
   * 查询数据
   * @param sql 查询的sql
   * @param engine 查询引擎 取值为hive,impala,mysql_data
   * @return 查询结果
   * @throws DataDaoException
   */
  public List<Map<String, String>> queryWithSql(String sql, String engine) throws DataDaoException;


  /**
   * 执行ddl,dml语句,无返回值
   * @param sql 要执行的sql
   */
  public void createWithSql(String sql,String engine)throws DataDaoException;
}
